//
// Created by jsjxsy on 2022/8/12.
//
#include <string.h>
#include <stdio.h>
int main(void) {
  char *string2 = "C, 1972; C++, 1983; Java, 1995; Rust, 2010; Kotlin, 2011";
  char *break_set = ",;";

  int count = 0;
  char *p = string2;
  char *ret = strpbrk(p, break_set);
  puts(ret);

  do {
    ret = strpbrk(ret, break_set);
    if (ret) {
      puts(ret);
      ret++;
      count++;
    }
  } while (ret);
  printf("count=%d", count);
  return 0;
}
